package org.freespace.controller;


import lombok.extern.slf4j.Slf4j;
import org.freespace.service.IMonitorSerivce;
import org.freespace.utils.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 监控
 * </p>
 *
 * @author liuqi
 * @since 2023-07-24
 */
@Slf4j
@RestController
@RequestMapping("/monitor")
public class MonitorController {

    @Autowired
    IMonitorSerivce monitorSerivce;

    @GetMapping(value = "/urllist/{jobId}/{envId}")
    public CommonResult monitorUrlList(@PathVariable("jobId") Integer jobId, @PathVariable("envId") String envId) {
        return CommonResult.success(monitorSerivce.monitorUrlList(jobId, envId));
    }
}
